﻿@model JCTimes.Portal.Models.ConfigItem
@{
    ViewBag.Title = "PDA分配功能";
}
@Styles.Render("~/Content/jquerytree")
@Styles.Render("~/Content/forms")
@using (Html.BeginForm()) {
    <div id="accordion">
        @Html.Hidden("pdaid", TempData["PDAID"])
        <div id="tree" class="ui-widget ui-widget-content daredevel-tree">
            @if (null != Model) {
                @Html.Partial("NodeItem", Model)
            }
            <p style="text-align: center">
                <input class="button" type="submit" id="example-0-button" value="提交" />
                <input class="button" type="button" onclick="location.href='@Url.Action("Index")'" value="返回"/>
            </p>
        </div>
    </div>
    
}
@section Scripts{
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
    @Scripts.Render("~/bundles/treeview")
    <script type="text/javascript">
        function setValue(li)
        {
            var ischeck = $(li).attr("value");
            if (ischeck == "true")
            {
                $(li).attr("value", false);
            } else
            {
                $(li).attr("value", true);
            }
        }
        $('#tree').tree();
    </script>
}
